/**
*	JS 工具类
**/
var util = function(){
	var version = "1.0";
	return {
		getTemplateData : function(template){
			var key = "template_" + template + "_v_" + version;
			var catchData = store.get(key);
			
			if(typeof(catchData) == "undefined"){
				var url = "./../assets/scripts/template/" + template;
				$.ajax({
					url : url,
					type : "POST",
					async : false,
					success : function(obj,data,res){
						var templateData = res.responseText;
						catchData = templateData;
				        store.set(key,templateData);
					}
				});
			}
			
			return catchData;
		} 
	}
}();